'''
Created on Jun 12, 2009

@author: tdelev
'''
from django.shortcuts import *
from django.http import *
from model.models import Tag

def index(request):      
    tags = Tag.get_all() 
    return render_to_response('tags/index.html', { 'tags' : tags })

    
def filter(request):
    q = request.GET['q']
    res = []
    for i in range(6):
        res.append('%s (%s)\n' % (q, 100 * i))
    return HttpResponse(res)